<?php
/**
 * OOP Practice Platform
 * 
 * Main Entrance to application
 *
 * @category
 * @package
 * @subpackage
 * @author      valerii lazarevych <lazarevuch@gmail.com>
 * @copyright   Copyright(c) Valerii Lazarevych
 * @license     proprietary software license
 * @version     $Id: EmptyPHP.php 13/5/2012 23:30:21 valerii $
 */

error_reporting(0);

$basePath   = dirname(__FILE__).'\../';

set_include_path(get_include_path().';'.$basePath.'application/');

function __autoload($classname)
{
    $basePath = dirname(__FILE__).'/../';
    
    $paths    = array(
        'libs/Well/',
        'libs/homeTasks/',
        'application/Controllers/',
        'application/Layouts/',
        'application/Models/',
        'application/Views/',
        'application/',
        'application/Layouts/'
    );
    
    foreach ($paths as $path){    
    
        $file     =   $basePath.$path.$classname.'.php';        
        file_exists($file) ?  include_once $file : '';                   }
}



//class String_Task extends Task
//{
//    
//    function do_Exercize(){
//        
//    }   
//    
//}
//
//$task1 = new String_Task;// инстанциировать
//for ($i=0;$i<5;$i++)
//{
//    $task='task'.$i;
//    $$task = new String_Task;
//}
//
//$task1->run();
//var_dump($task3);
//
//echo Task::$count;


FrontController::run();